home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / serien / purity / nr.42 / includes3v1 / includes3v1.lha / Prefs / PrinterGfx.i < prev    next >
Text File  |  1994-12-04  |  2KB  |  75 lines

  1.   {     File format for graphics printer preferences }
  2.  
  3.  
  4. {$I "Include:Libraries/IffParse.i"}
  5.  
  6.  
  7. const
  8.  ID_PGFX = 1346848344;
  9.  
  10. Type
  11.  PrinterGfxPrefs = Record
  12.     pg_Reserved     : Array[0..3] of Integer;
  13.     pg_Aspect,
  14.     pg_Shade,
  15.     pg_Image,
  16.     pg_Threshold    : WORD;
  17.     pg_ColorCorrect,
  18.     pg_Dimensions,
  19.     pg_Dithering    : Byte;
  20.     pg_GraphicFlags : WORD;
  21.     pg_PrintDensity : Byte;              { Print density 1 - 7 }
  22.     pg_PrintMaxWidth,
  23.     pg_PrintMaxHeight : WORD;
  24.     pg_PrintXOffset,
  25.     pg_PrintYOffset : Byte;
  26.  end;
  27.  PrinterGfxPrefsPtr = ^PrinterGfxPrefs;
  28.  
  29. const
  30. { constants for PrinterGfxPrefs.pg_Aspect }
  31.  PA_HORIZONTAL = 0;
  32.  PA_VERTICAL   = 1;
  33.  
  34. { constants for PrinterGfxPrefs.pg_Shade }
  35.  PS_BW          = 0;
  36.  PS_GREYSCALE   = 1;
  37.  PS_COLOR       = 2;
  38.  PS_GREY_SCALE2 = 3;
  39.  
  40. { constants for PrinterGfxPrefs.pg_Image }
  41.  PI_POSITIVE = 0;
  42.  PI_NEGATIVE = 1;
  43.  
  44. { flags for PrinterGfxPrefs.pg_ColorCorrect }
  45.  PCCB_RED   = 1;    { color correct red shades   }
  46.  PCCB_GREEN = 2;    { color correct green shades }
  47.  PCCB_BLUE  = 3;    { color correct blue shades  }
  48.  
  49.  PCCF_RED   = 1;
  50.  PCCF_GREEN = 2;
  51.  PCCF_BLUE  = 4;
  52.  
  53. { constants for PrinterGfxPrefs.pg_Dimensions }
  54.  PD_IGNORE   = 0;  { ignore max width/height settings }
  55.  PD_BOUNDED  = 1;  { use max w/h as boundaries        }
  56.  PD_ABSOLUTE = 2;  { use max w/h as absolutes         }
  57.  PD_PIXEL    = 3;  { use max w/h as prt pixels        }
  58.  PD_MULTIPLY = 4;  { use max w/h as multipliers       }
  59.  
  60. { constants for PrinterGfxPrefs.pg_Dithering }
  61.  PD_ORDERED     = 0;  { ordered dithering }
  62.  PD_HALFTONE    = 1;  { halftone dithering        }
  63.  PD_FLOYD       = 2;  { Floyd-Steinberg dithering }
  64.  
  65. { flags for PrinterGfxPrefs.pg_GraphicsFlags }
  66.  PGFB_CENTER_IMAGE      = 0;       { center image on paper }
  67.  PGFB_INTEGER_SCALING   = 1;       { force integer scaling }
  68.  PGFB_ANTI_ALIAS        = 2;       { anti-alias image      }
  69.  
  70.  PGFF_CENTER_IMAGE      = 1;
  71.  PGFF_INTEGER_SCALING   = 2;
  72.  PGFF_ANTI_ALIAS        = 4;
  73.  
  74.  
  75.